From 4a58b1ca043faf91f8f33b08558771fb45d42a13 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 5 Mar 2001 15:19:17 +0000 Subject: [PATCH] Use correct options when compiling a test program with Cygwin. From David Ponce . --- nt/configure.bat | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nt/configure.bat b/nt/configure.bat index 4fd8ea549bd..5ef56136469 100755 --- a/nt/configure.bat +++ b/nt/configure.bat @@ -202,7 +202,16 @@ echo Checking whether W32 API headers are too old... echo #include "windows.h" >junk.c echo test(PIMAGE_NT_HEADERS pHeader) >>junk.c echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c -gcc -c junk.c +if (%nocygwin%) == (Y) goto checkw32api1 +set cf=%usercflags% +goto checkw32api2 +:checkw32api1 +set cf=%usercflags% -mno-cygwin +:checkw32api2 +echo on +gcc %cf% -c junk.c +echo off +set cf= if exist junk.o goto gccOk :nocompiler -- 2.30.2